home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / CIncludes / locale.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-21  |  1.8 KB  |  83 lines  |  [TEXT/MPS ]

  1. /*
  2.     locale.h - Localization
  3.     
  4.     Copyright Apple Computer, Inc.  1988, 1990, 1993
  5.     All rights reserved.
  6.     
  7. */
  8.  
  9. #ifndef __LOCALE__
  10. #define __LOCALE__
  11.  
  12. /* 
  13.  *   Declarations
  14.  */
  15.  
  16. #ifndef NULL 
  17. #define NULL 0
  18. #endif
  19.  
  20. #define LC_ALL        1 /* entire locale */
  21. #define LC_COLLATE    2 /* strcoll and strxfrm functions */
  22. #define LC_CTYPE      3 /* character handling and multibyte functions */
  23. #define LC_MONETARY   4 /* monetary formatting information returned by localeconv */
  24. #define LC_NUMERIC    5 /* decimal point formatting input/output and string conversions */
  25. #define LC_TIME       6 /* strftime function */
  26.  
  27. #ifdef powerc
  28. #pragma options align=power
  29. #endif
  30. struct lconv {
  31.     char *decimal_point;       /* "." */
  32.     char *thousands_sep;       /* "" */
  33.     char *grouping;            /* "" */
  34.     char *int_curr_symbol;     /* "" */
  35.     char *currency_symbol;     /* "" */
  36.     char *mon_decimal_point;   /* "" */
  37.     char *mon_thousands_sep;   /* "" */
  38.     char *mon_grouping;        /* "" */
  39.     char *positive_sign;       /* "" */
  40.     char *negative_sign;       /* "" */
  41.     char frac_digits;          /* CHAR_MAX */
  42.     char int_frac_digits;      /* CHAR_MAX */
  43.     char p_cs_precedes;        /* CHAR_MAX */
  44.     char p_sep_by_space;       /* CHAR_MAX */
  45.     char n_cs_precedes;        /* CHAR_MAX */
  46.     char n_sep_by_space;       /* CHAR_MAX */
  47.     char p_sign_posn;          /* CHAR_MAX */
  48.     char n_sign_posn;          /* CHAR_MAX */
  49. };
  50. #ifdef powerc
  51. #pragma options align=reset
  52. #endif
  53.  
  54.  
  55. #ifdef __cplusplus
  56. extern "C" {
  57. #endif
  58.  
  59. /*
  60.  *  functions
  61.  */
  62.  
  63. #ifdef __CFM68K__
  64.     #ifdef UsingSharedLibs
  65.         #pragma lib_export on
  66.     #endif
  67. #endif
  68.  
  69. char *setlocale (int category, const char *locale);
  70. struct lconv *localeconv (void);
  71.  
  72. #ifdef __CFM68K__
  73.     #ifdef UsingSharedLibs
  74.         #pragma lib_export off
  75.     #endif
  76. #endif
  77.  
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81.  
  82. #endif /*__LOCALE__*/
  83.